<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<style type="text/css">
ul {
	margin: 0 auto;
	text-align: center;
	list-style-type: none;
}

ul li {
	font-size: 20px;
	font-weight: bold;
	display: inline;
	list-style-type: none;
	float: left;
	margin: 5px;
}
.navbar-header{
	float:left;
	
}
.navbar-header .navbar-brand{
	line-height: 30px;
}
.navbar-collapse.navbar-left{
	float:left;
	height:100%;
}
.pull-right{
	float:right;
}
table{
	margin:0 auto;
}
</style>

<%-- <div>
	<ul>
		<li>欢迎${sessionScope.user.userName}使用本系统</li>
		<li><a href="${pageContext.request.contextPath }/homepage.jsp">首页</a></li>
		<li><a href="um-selfMsgModif">信息修改</a></li>
		<li><a href="um-userExit">安全退出</a></li>
	</ul>
</div> --%>

<nav class="navbar navbar-default navbar-static-top">
  <div class="container">
	  <div class="navbar-header">
	      <a class="navbar-brand" >欢迎${sessionScope.user.userName}</a>
	  </div>
    <div class="collapse navbar-collapse navbar-left">
       <ul class="nav navbar-nav">
         <li><a href="${pageContext.request.contextPath }/homepage.jsp">&nbsp;首页&nbsp;</a></li>
         <s:if test="'管理用户' in #session.rolePermission_name_list">
			 <li class="dropdown">
	          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户管理<span class="caret"></span></a>
	          <ul class="dropdown-menu">
	            <li><a href="um-userManage">用户管理</a></li>
	            <li><a href="rm-roleManage">角色管理</a></li>
	          </ul>
	        </li>
		</s:if>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">器材管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
          	<s:if test="'管理器材' in #session.rolePermission_name_list">
				<li><a href="em-equipmentManage">器材管理</a></li>
				<li><a href="er-equipmentRent">器材租借</a></li>
				<li><a href="er-returnEp">器材归还</a></li>
			</s:if>
			<s:else>
				<h3>器材</h3>
				<li><a href="er-equipmentRent">器材租借</a></li>
			</s:else>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">管理场地<span class="caret"></span></a>
          <ul class="dropdown-menu">
          <s:if test="'管理场地' in #session.rolePermission_name_list">
			<li><a href="add_field.action">场地添加</a></li>
			<li><a href="field_modifyRental.action">租金修改</a></li>
			<li><a href="field_show.action">显示场地</a></li>
		</s:if>
		<s:else>
			<h3>场地</h3>
			<li><a href="fieldAll_record.action">显示场地</a></li>	
			<li><a href="fieldRent_order.action">显示租用记录</a></li>	
		</s:else>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">赛事管理<span class="caret"></span></a>
          <s:if test="'管理赛事' in #session.rolePermission_name_list">
			<ul class="dropdown-menu">
				<li><a href="matchApply_findAll.action?currPage=1" >查看赛事申请表</a></li>
				<li><a href="matchApply_apply.action">新建赛事申请表</a></li>
				<li><a href="matchApply_examine.action?currPage=1">审核赛事申请表</a></li>
				<li><a href="matchApply_delete.action?currPage=1" >删除赛事申请表</a></li>
				<li><a href="matchInfo_findAll.action?currPage=1" >查看赛事信息表</a></li>
				<li><a href="matchInfo_listUpdate.action?currPage=1" >更新赛事信息表</a></li>
				<li><a href="matchInfo_delete.action?currPage=1">删除赛事信息表</a></li>
			</ul>
		</s:if>
		<s:else>
			<li><a href="matchApply_findAll.action?currPage=1" >查看赛事申请表</a></li>
			<li><a href="matchInfo_findAll.action?currPage=1">查看赛事信息表</a>	</li>
		</s:else>
        </li>
       </ul>
      </div>
      <%-- <div class="navbar-header">
	      <a class="navbar-brand pull-right" >${sessionScope.user.userName}</a>
	  </div> --%>
  </div>
</nav>

<br />
<br />